﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using KinectGame;

namespace MemoGame
{
    static public class Program
    {
        private static MenuUI menuUI;

        public static MenuUI MenuUI
        {
            get { return Program.menuUI; }
            set { Program.menuUI = value; }
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static public void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length > 0)
            {
                if (args[0].Equals("/motion"))
                {
                    Application.Run(new KinectGame.GameContext(1, new MenuUI()));
                }
                if (args[0].Equals("/voice"))
                {
                    Application.Run(new KinectGame.GameContext(2, new MenuUI()));
                }
            }
            else
            {
                Application.Run(new KinectGame.GameContext(0, new MenuUI()));
                Console.WriteLine("run desktop");
            }
        }
    }
}
